
<h2>You are about to pay for a Claimed Kurancy with token: jkdlsk-832383.</h2>

<table>
	<tr>
		<td>Amount</td>
		<td>${kurancyCreated.amount}</td>
	</tr>
	<tr>
		<td>Claimed By</td>
		<td>${kurancyCreated.claimedBy}</td>
	</tr>
</table>

<form action="https://www.sandbox.paypal.com/webapps/adaptivepayment/flow/pay" target="PPDGFrame"> 
		<input id="type" type="hidden" name="expType" value="mini"> 
		<input id="paykey" type="hidden" name="paykey" value="${kurancyCreated.paypalPayKey}"> 		
		<!-- <input id="preapprovalkey" type="hidden" name="preapprovalkey" value="PA-..."> -->
		<input type="submit" id="submitBtn" value="Pay with PayPal"> 	
</form>

<script type="text/javascript" src="https://www.paypalobjects.com/js/external/apdg.js"></script>
<script> 
	var dgFlow = new PAYPAL.apps.DGFlow({ trigger: 'submitBtn' });
</script>